package com.hospital.dao;

import com.hospital.entity.Department;
import com.hospital.entity.Employee;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentDao {

    int add(Department department);

    int delete(Integer id);

    int update(Department department);

    long count(String department_name);

    List<Department> select();

    List<Department> selectPage(@Param("department_name") String department_name, @Param("start") int start, @Param("size") int size);

    List<Department> selectPageDepartmentEmployee(@Param("department_name") String department_name, @Param("start") int start, @Param("size") int size);
}
